package com.malphi.framework.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import com.malphi.framework.model.User;

/**
 * Contact Mapper contains all the myBatis/iBatis annotations
 * 
 * @author Loiane Groner
 * http://loianegroner.com (English)
 * http://loiane.com (Portuguese)
 */
@Component
public interface UserMapper {

	final String SELECT_ALL = "SELECT * FROM user";
		
	/**
	 * Returns the list of all Contact instances from the database.
	 * @return the list of all Contact instances from the database.
	 */
	@Select(SELECT_ALL)
//	@Results(value = {
//		@Result(property="id", column="CONTACT_ID"),
//		@Result(property="name", column="CONTACT_NAME"),
//		@Result(property="phone", column="CONTACT_PHONE"),
//		@Result(property="email", column="CONTACT_EMAIL")
//	})
	List<User> selectAll();
	
	
}
